package ai.plantdata.Behavior.mode.CommandPattern.interfaces.impl;

import ai.plantdata.Behavior.mode.CommandPattern.classes.Stock;
import ai.plantdata.Behavior.mode.CommandPattern.interfaces.Order;

/**
 * @Author: WangHui
 * @Date: 2020/12/23 11:16
 * @Description:
 */
public class SellStock implements Order {
    private Stock abcStock;

    public SellStock(Stock abcStock) {
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.sell();
    }
}
